package exam_practice;

public class Square extends Rectangle {
	private int sideLength;

	public Square(int s, Point c) {
		super(s, s, c);
		sideLength = s;
	}

	public int area() {
		System.out.print("Square area: ");
		return sideLength * sideLength;
	}
}
